package com.link.base.microinterface.microservice;

import com.link.base.loyalty.member.model.Member;
import com.link.base.microinterface.microservice.model.LytMember;
import com.link.microservice.config.LinkFeignClientConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author zhangyuaho
 * @version 1.0
 * @description 忠诚度会员Client
 * @date 2019-8-5 19:18:32
 */
@FeignClient(name = "LINK-LOYALTY", configuration = LinkFeignClientConfig.class)
public interface MemberClient {

    /**
     * 创建交易
     *
     * @author NingLanhao
     * @date 2019-07-22 19:59
     * @param member
     * @return java.util.Map
     */
    @PostMapping(value = "/loyalty/member/wxRegister", produces = "application/json; charset=UTF-8")
    public Map<String, Object> wxRegister(Member member) throws Exception;


    /**
     * @author HuangLJ
     * @date 2019-03-23 10:19
     * @param
     * @return
     * @throws Exception 报错
     * @comments 查询所有接口
     */
    @RequestMapping(value = "/loyalty/member/queryByExamplePage", method = RequestMethod.POST)
    public Map<String, Object> queryByExamplePage(@RequestBody LytMember member);

    /**
     * @author HuangLJ
     * @date 2019-03-23 10:19
     * @param
     * @return
     * @throws Exception 报错
     * @comments 查询所有接口
     */
    @RequestMapping(value = "/loyalty/member/checkMember", method = RequestMethod.POST,
            headers = {"NoIntercept=NoIntercept"})
    public Map<String, Object> checkMember(@RequestBody LytMember member);

    /**
     * @author HuangLJ
     * @date 2019-03-23 10:19
     * @param
     * @return
     * @throws Exception 报错
     */
    @PostMapping(value = "/loyalty/sms/transWxTemplate", produces = "application/json; charset=UTF-8")
    public Map<String, Object> transWxTemplate(Map<String, Object> map);

}
